﻿using System.ComponentModel;
using System.Xml.Serialization;

namespace SharePhone.Core.UserProfile
{
    [XmlRoot("ValueData")]
    public class ValueData : INotifyPropertyChanged
    {
        private object valueData;

        [XmlElement]
        public object Value
        {
            get { return valueData; }
            set
            {
                valueData = value;
                OnPropertyChanged("Value");
            }
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        #endregion

        protected void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}